import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('ToggleSwitch')
export default class ToggleSwitch extends Component {
    @property(Node)
    public on: Node | null = null;
    @property(Node)
    public off: Node | null = null;
    isOn: boolean = false;
    Init(_isOn: boolean) {
        // this.isOn = _isOn;
        // this.Refresh();
    }
    Refresh() {
        // this.on.active = this.isOn;
        // this.off.active = !this.isOn;
    }
    SwitchOnOff() {
        // this.isOn = !this.isOn;
        // this.Refresh();
    }
}